package com.humingzhang.client.oss;

import com.humingzhang.client.FileConfig;

/**
 * OSS 配置
 *
 * @author minghu.zhang
 */
public class OssConfig implements FileConfig {

    private String bucketName;
    private String endpoint;
    private String accessKeyId;
    private String accessKeySecret;

    public OssConfig() {
    }

    public OssConfig(String bucketName, String endpoint, String accessKeyId, String accessKeySecret) {
        this.bucketName = bucketName;
        this.endpoint = endpoint;
        this.accessKeyId = accessKeyId;
        this.accessKeySecret = accessKeySecret;
    }

    public String getBucketName() {
        return bucketName;
    }

    public OssConfig setBucketName(String bucketName) {
        this.bucketName = bucketName;
        return this;
    }

    public String getEndpoint() {
        return endpoint;
    }

    public OssConfig setEndpoint(String endpoint) {
        this.endpoint = endpoint;
        return this;
    }

    public String getAccessKeyId() {
        return accessKeyId;
    }

    public OssConfig setAccessKeyId(String accessKeyId) {
        this.accessKeyId = accessKeyId;
        return this;
    }

    public String getAccessKeySecret() {
        return accessKeySecret;
    }

    public OssConfig setAccessKeySecret(String accessKeySecret) {
        this.accessKeySecret = accessKeySecret;
        return this;
    }

    @Override
    public String toString() {
        return "OssConfig{" +
                "bucketName='" + bucketName + '\'' +
                ", endpoint='" + endpoint + '\'' +
                ", accessKeyId='" + accessKeyId + '\'' +
                ", accessKeySecret='" + accessKeySecret + '\'' +
                '}';
    }
}
